package cn.fanqinghong.ymcc.constants;

/**
 * FAN
 * 2022/7/15  18:38
 */
public enum YmccError {

    NO_NAME_IS_EMPTY("4001","员工名字不能为空"),
    NO_EMAIL_IS_EMPTY("4002","邮箱不能为空"),

    COMMON_KEY_IS_NOT_EMPTY("4100","key不为空"),
    COMMON_SERIOUS("4101","大兄弟你要搞事情哦，不要手速太快"),
    COMMON_IMAGECODE_NOT_RIGHT("4103","图像验证码不正确，请输入正确的图形验证码!!"),
    COMMON_PHONE_IS_EMPTY("4102","书记好不能为空或者手机号不合法"),

    USER_SMS_IS_EMPTY("4201","验证码不为空"),
    USER_SMS_IS_NOT_EQUEAL("4202","验证码不正确"),
    USER_IS_NOT_NULL("4203","用户已存在，庆直接登录"),
    USER_ID_IS_NULL("4204","保存用户数据失败"),

    USERACCOUNT_ID_IS_NULL("4205","保存用户支付账号数据失败"),
    USERBASEINFO_ID_IS_NULL("4206","保存登录认证数据失败"),

    LOGIN_SAVE_FAIL("4301","用户保存失败"),

    PHONE_IS_IN_BLACKLIST("3001","改手机号为黑名单")
    ;
    private String code;
    private String message;

    YmccError(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
